﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Practices.EnterpriseLibrary.Logging;

namespace ScoringClient
{
    class LoggerProvider
    {
        public static void Info(string message, string className, string functionName)
        {
            Dictionary<string, object> properties = new Dictionary<string, object>();
            properties.Add("Class Name", className);
            properties.Add("Function Name", functionName);

            LogEntry entry = new LogEntry()
            {
                Message = message,
                ExtendedProperties = properties
            };
            Logger.Write(entry);
        }
    }
}
